# 工具类


def get_default(data: dict, key, default=None):
    try:
        return data[key]
    except KeyError:
        return default
